<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>闪烁效果</title>
    <style>
        body {
            padding: 100px;
        }

        div {
            width: 150px;
            height: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #220033;
            color: white;
            /*animation: 0.5s blink-smooth 6 alternate steps(1, start);*/
            animation: 1s blink 3 steps(1);
        }

        @keyframes blink-smooth {
            to {
                color: transparent;
            }
        }

        @keyframes blink {
            50% {
                color: transparent;
            }
        }
    </style>
</head>
<body>
<div>这是文字</div>
</body>
</html>
